the ousted president was convicted on charges of violence and inciting violence .
morsy , who became egypt 's first democratically elected president in june 2012 , was deposed by a popularly backed military coup in july 2013 .
after the sentencing , his freedom and justice party called the trial a `` travesty of justice .